package com.cqnu.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.cqnu.dao.ExtraDAO;
import com.cqnu.dao.PaperDao;
import com.cqnu.entity.Paper;
import com.cqnu.service.IPaperService;
@Service("paperService")
public class PaperServiceImpl extends BaseServiceImpl implements IPaperService{

	@Resource
	private PaperDao paperDao;
	@Resource
	private ExtraDAO extraDAO;

	@Override
	public List<Paper> find(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return paperDao.find(map);
	}

	@Override
	public Long getTotal(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return paperDao.getTotal(map);
	}

	@Override
	public int update(Paper obj) {
		// TODO Auto-generated method stub
		return paperDao.update(obj);
	}

	@Override
	public int add(Paper obj) {
		// TODO Auto-generated method stub
		return paperDao.add(obj);
	}

	@Override
	public int delete(Integer id) {
		// TODO Auto-generated method stub
		return paperDao.delete(id);
	}

	@Override
	public Paper getById(Integer id) {
		// TODO Auto-generated method stub
		return paperDao.getById(id);
	}

	@Override
	public List<Paper> getPaperByTeaId(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return extraDAO.getPaperByTeaId(map);
	}
	
	 

}
